package aishua.com.mytestapplist;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import org.w3c.dom.Text;

/**
 * Created by aishua on 2018/2/27.
 */

public class SecondActivity extends Activity {
    private Button btn_singleinstance;
    private TextView tv_singleInstance;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);
        btn_singleinstance = (Button) findViewById(R.id.btn_singleInstance);
        tv_singleInstance = (TextView) findViewById(R.id.tv_singleInstance);
        tv_singleInstance.setText("Current Task id is"+getTaskId());
        btn_singleinstance.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(SecondActivity.this,TestActivity.class);
                startActivity(intent);
            }
        });
    }


}
